#!/bin/bash

echo "get data from unix bench log"

file=$1
start=$2
end=$3

sed -n "$start,${end}p" "$file"  > /tmp/data.log

echo "############################"
echo "getting test case ..."
echo ""

cut -c -38 /tmp/data.log

echo "############################"
echo "getting index score ..."
echo ""
awk '{print $NF}' /tmp/data.log
